﻿#pragma warning disable 649    // disable compiler warnings about unassigned fields

namespace SoftSource.Timecard.Web.Data
{
    using System;
    using System.ComponentModel.DataAnnotations;


    [MetadataTypeAttribute(typeof(User.UserMetadata))]
    public partial class User
    {
        internal sealed class UserMetadata
        {
            // Metadata classes are not meant to be instantiated.
            private UserMetadata()
            {
            }

            public int UserID;

            [Required]
            [Display(Name="Username")]
            public string UserName;

            [Required]
            [Display(Name = "Full Name")]
            public string FullName;

            [Required]
            [Display(Name = "User Type")]
            public int UserTypeID;

            [Required]
            [Display(Name = "Role")]
            public int RoleID;

            [Required]
            [Display(Name = "Expected Hours")]
            public short ExpectedHours;

            [Display(Name = "Is Active")]
            public bool IsActive;

            [Display(Name = "Start Date")]
            public Nullable<DateTime> StartDate;

            [Display(Name = "Is Administrative")]
            public bool IsAdministrative;

            [Display(Name = "PTO Hours Rolled")]
            public Nullable<decimal> PTOHoursRolled;            
        }
    }
}

#pragma warning restore 649    // re-enable compiler warnings about unassigned fields
